]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[AppSwitcher] Fix hiding the arrow on application change.
authorSteve Frécinaux <code@istique.net>
Thu, 8 Oct 2009 11:14:15 +0000 (13:14 +0200)
committerSteve Frécinaux <code@istique.net>
Thu, 8 Oct 2009 11:56:47 +0000 (13:56 +0200)
The down arrow is shown when an application with more than one
window is selected, but the window list is not always displayed.

This patch fixes the fact that the arrow was not hidden when one
focus an app with a single window when coming from an app with
multiple windows, if the window list was not displayed.

https://bugzilla.gnome.org/show_bug.cgi?id=597791

js/ui/altTab.js

index 90e7562ce44f42e8b7cd98f8a47a5ed2628649a6..600e1cc3333ea0011cae043276030ca6fe0c4ac5 100644 (file)
@@ -248,9 +248,11 @@ AltTabPopup.prototype = {
     },
 
     _select : function(app, window, noTimeout) {
-        if ((app != this._currentApp || !window) && this._thumbnails) {
-            this._thumbnails.actor.destroy();
-            this._thumbnails = null;
+        if (app != this._currentApp || !window) {
+            if (this._thumbnails) {
+                this._thumbnails.actor.destroy();
+                this._thumbnails = null;
+            }
             this._appSwitcher.showArrow(-1);
         }